import request from '@/utils/request'

// 查询员工银行卡信息列表
export function listStaffBankCard(query) {
  return request({
    url: '/ec/staffBankCard/list',
    method: 'get',
    params: query
  })
}

// 查询员工银行卡信息详细
export function getStaffBankCard(id) {
  return request({
    url: '/ec/staffBankCard/' + id,
    method: 'get'
  })
}

// 新增员工银行卡信息
export function addStaffBankCard(data) {
  return request({
    url: '/ec/staffBankCard',
    method: 'post',
    data: data
  })
}

// 修改员工银行卡信息
export function updateStaffBankCard(data) {
  return request({
    url: '/ec/staffBankCard',
    method: 'put',
    data: data
  })
}

// 删除员工银行卡信息
export function delStaffBankCard(id) {
  return request({
    url: '/ec/staffBankCard/' + id,
    method: 'delete'
  })
}

// 根据员工id获取银行卡信息
export function getInfoByStaffId(query) {
  return request({
    url: '/ec/staffBankCard/getInfoByStaffId',
    method: 'get',
  })
}
